'use strict';

module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;
  const Douban = app.model.define('user', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    detailUrl: STRING(128),
    picUrl: STRING(128),
    title: STRING(30),
    add_time: {
      type: STRING,
      defaultValue: new Date().getTime(),
    },
  });

  return Douban;
};
